Finished CircularSuffixArray using insertion sort