Vertex permutation algorithm implemented, tested and documented.