Functional Component Analysis And Regression Using Elastic Methods