Weak solutions of the curve shortening flow