Added back permutateLexicographically sub module