On Optimal Codes for Additive Noise Channels