Graphical Time Warping for Joint Alignment of Multiple Curves