MATLAB implementation of Sparse Distributed Memory