Made MathHelper.bezier accept any size of array