Added new gait table implementation.
Redimensioned shape id to unsigned long.
Now it works on a single thread with the new gait table paradigm.