A length function for Weyl groups of extended affine root systems of type A1