Debugged some crucial stuff in the feature pyramids. Matching is now almost correct - there is probably an off by one lying around somewhere.