THE THREE-DIMENSIONAL STRUCTURE OF THE SMALL MAGELLANIC CLOUD