Multiresolution time warping for functional data.