Restricted flows of soliton hierarchies: coupled KdV and Harry Dym case