finish find minimal in rotated sort array