An enhanced partial order curve comparison algorithm and its application to analyzing protein folding trajectories