Small refactoring (styling)
Added support for permutating strings
Added support for custom comparers