Data structures and algorithms implementing with java