added binary search algorithm to search a sorted array that has been rotated. Minor fix for the cycle finder when determining all the vertices on a cycle path.