Organized tests. Small improvement on binary search.