Fixed the binary search equation by changing the 2x to 2^x If we divide N by 2 x times it is supposed to be N/2^x not N/2x