update surf algorithm