Implement the "l2" inner product