Added Path class to handle path length
Added Secure Algorithm | Length of permutation is bugged