Time-oriented hierarchical method for computation of principal components using subspace learning algorithm