minor edit
change thoughts of sol
del original subroutine
modified version of finding pivot in a rotated sorted array
use binary search to find the index