Continued ex.5. Binary search not entirely working.