initial voxelizer code from assn 1