A Simple Algorithm for Local Conversion of Pure States