Add an implementation of Algorithm GD, Version 2 in http://arxiv.org/abs/1310.2118.