NAMSG: An Efficient Method For Training Neural Networks