java source including hashmap, segment tree vanilla and unfinished treap