Remove debug
Add unit test for the binary search function
Fix service with unit test