A simple implementation in MATLAB. Consume a lot of memory. =.=
Removed unwanted files.