add links to the implementation by Pierre-David Bélanger