Permut implemented