Updated dependencies, removed unused dependencies and modified code to use new commons-lang3 and commons-math3