Change-pointDetectionforSparseandDense FunctionalDatainGeneralDimensions