Cluster based PET and SPECT reconstruction software library