Numerical simulation of imploding shock waves