Implemented basic binary search in Python