Exact diagonalization, full ED, optimized Lehmann's representation