[FIX] Algorithms: fixed maxLength() return type