add keypointMatch function