Measure Inducing Classification and Regression Trees for Functional Data