Create Search in Rotated Sorted Array II (pyemma)