added code for/of permutation implementation
added commetns