Refactor binary search
Add palindrome algorithm