Add n dimentional math.