Email Record: Algorithms and ordering heuristics for distributed constraint satisfaction problems