Update BFSPaths.java