Implemented geometric hashing algorithm with precalculation