functions it makes cubic and quadratic functions based on some given points (does not work 100% of the time)