Added ordered permutations function to Common
#24 :)