Nepal—an algorithm for solving the volume integral equation