Gamma-convergence and numerical analysis: an application to the minimal partition problem