Add `allCollision` MATLAB RBM method