Computing the small-scale galaxy power spectrum and bispectrum in configuration space