plots graphs, finds intersections, C#