Yaxuan & Jinwen [Ruler-1]: add length compare method