Added DTW for vector distances, fixed uninitalized variable bug