The abacus cosmological N-body code