made a bunch of memory saving changes!  deallocated some vectors from GenHam.
also changed precision in entropy calculation from long double to double, since the input (coming from the Lanczos) is only double