Dekker 2014

original code from T. J. Dekker web site