Update CachingBFS.java