finished with making the patch dist use unsigned long long values
put the main patchmatch code into it's own function so that we can call it from a library header later. More work to be done