Put LineGraph and Pair<T> into their own class files.