Follow MATLAB directory for full implementation in MATLAB. Follow JAVA directory for full implementation in Java. (Currently Incomplete)