Using look-up table to calculate the integrated spectrum (Valgrind)