memory <-> speed tradeoff for bessel functions