Homology calculation for Quandles in Matlab