added some 3rd party code for detecting surf features