Implement some stuff in Java

Same Data Structures and Algos as in the Python directory, but remaking
them in Java to practice Java syntax after a long time away from coding
in Java.