Space Curves and Solitons of the KP Hierarchy