The Curve Equipartition Problem (EP) and its Applications on Polygonal Approximation and Video Summarization