Computer calculations of phase diagrams