Added simple implementation of next_permutation and accompanying unti test