Text this: Numerical algorithm for integrals with rapid oscilatory functions