Algorithms For Computing Highly Oscillatory Indefinite Integrals And Applications In Plasma Physics