allow loading pattern of non-integer file
More efficient maximum matching