Reverse engineering the euglenoid movement