add older java reference implementations (untested)