update to newest hama, refactor sssp/mindist search