Add mergesort
Write Makefile for test
Improve testing algorithm