Data Structures and algorithm analysis in Java(demo)