Some implemenation of java datastructure