A sequential method for system identification in hierarchical structure