moved to using a lambda for the comparison functions in the templated SurfaceTree constructor. This makes means that I don't need to declare the functions in the source file as well.