Added partition, indexOf, lastIndexOf, sortedIndexOf and range functions and their tests