D0-branes on $T^n$ and matrix theory