Prepared java file for DStar algorithm