Drawing Grid. Added math library.