Numerical solution of the Minkowski problem