wip
naive p^3 sort working