20130531 GN Algorithm debugged