speed

Sped up THnSparse data access (per dabercro's suggestion). Moved some THn helper functions around; more performance improvements to come