Add Exp method to Dense

This is the legible but apparently not performance optimal version.