Monte Carlo simulation of hard sphere packing using MATLAB