Extended to all dimensions