Ported regular_points() to XS and renamed it to equally_spaced_points()