Fix call of computeTFTexture(...) (Assuming min and max are x-coordinates)
Fix makeHistogram
Use size_t for indices. The const versions of operator[] return a const&.