fix 0.28+0.34=0.6200001 bug, add shortest path tree and unit tests, and also add SPT and LPT to index.js.