Added permutations of any indexable, moved search and sort to root directory