core: Refactor tri_and_alt_ip_filtering into .cc file

This also removes a couple headers from InterestPointMatching.h like
Datum.h StereoModel.h and GaussianClustering.h. I'm pretty happy with
that, maybe compilation times will drop a little bit.