main in java
heurists and node in java