bugfix (main loop was looping from k=1, changed to k=0);
correctness test broken, test_reference.dat[.txt] rebuilt.