A greedy method for time-delay and parameter estimation of a class of closed-loop systems