Implemented several major speedups to the matchImages algorithm.

Added an early terminal threshold, made GCC run much faster, reduced
the total number of ubc matches necessary. Runs lean, not much else
left to optimize.