adding a basic mdist profiling
plotting the mdist perf results
fixed some Makefile bugs, added section on mdist and match_on scaling