Added 3D array -> SVO construction code (ugly and slow).