“Form-invariant” topological mapping strategy for 2D shape recognition