Search array for position of number using binary searching algorithm