Variational calculation of nuclear matter