Almost finished reshuffling code to use function pointers and the functional/logical separation of Lanczos, Hv, and the potential calculation