Added Mapes algorithm
Merge