Added gaussian weighted l2 norm calculation to main branch