Move sortedIndex to Array methods + some annoying files to gitignore