Craig And Dave Algorithms