Some optimizations. Blocks 1-4 of the hamiltonian build
optimized