add class Path

why don't implement Comparable? Then List<Path> can be sorted with compareTo.