implemented line plotting on curve
implemented intersection calculating