Made MathHelper.bezier accept any amount of points