add benchmark capability

Code added to enable statistics reporting on j2k decoding