Adding a basic implementation in MATLAB