Estimation And Clustering On Longitudinal Data Using Penalized Spline Models