solved http://www.geeksforgeeks.org/find-a-fixed-point-in-a-given-array/