ordered link merge and simple compress