normalize_3d function

Normalize a 3D 'stars' object