Removed superfluous require statement
added permutations function addressing #99