Phase-field modelling and computing for a large number of phases