Finalized the algorithm
Renamed file