Add Exp method to Dense

This is the legible but apparently not performance optimal version.
Good catch. I'll fix that later today.