Data structures solved and written in Java