Added the mapping algorithm and compared the run times