adds permutations model and migration and a working but flawed iteration ui