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