adding MATLAB clustering