On Computing Optimal Thresholds For Sequential Hypothesis Testing Problem