Similar Items: Size-Change Termination, Monotonicity Constraints and Ranking Functions