1. provided annotations to identify procedures of backtracking
2. refined swap-based permutation code