Added perm solution.  Added some tests to utilities.