Translating e-maxx algorithms to english and writing all code in java.