lanczos working hopefully(TO DO: verify results from lanczos)