Numerical modeling of the equilibrium shapes of a ferrofluid drop in an external magnetic field