started converting arnlodc.scala to arnoldc.cpp