determineWarpingFunctions throws a warning if the reference contains to few peaks