Added to readme and made some fixes to sort and permute.