Added java part of Kosaraju's strongly connected components