add comparable interface to Astar
add javadoc