Calculation of the hadron spectrum in lattice QCD