added th2
added getbincount etc fo th2d