match algorithms work properly and three merge algorithms are implemented