Added BerkeleyDBActor.
Added some debugging output to Algorithm.