updated StackSortPerm.hs file