Added binary search algorithm

- Refactored test case organization.
- Added binary search algorithm and related test case.