Hand Gesture Recognition Following the Dynamics of a Topology-Preserving Network