Create PrimSum.java

See line notes for details.