Move reference implementation into own directory.