added an implementation for a binary search algorithm