Add the doomsday algorithm