Introduced optimized sparse joint normalization function and cleaned up code