A port of Fast Affine Template Matching algorithm