add nextPermutation, other basic helperfuncs
lab2: add setAssignments/printAssignments