A sequential clinical trial for comparing three treatments