Added binarySearch method. It is correct, but doesn't it is not converging for pmed29, but converges for pmed01.