Text this: Division algorithm and construction of curves with many points