An implicit finite-volume method for solving the Euler equations