Updated big-O analyze for maze puzzle