added qf algorithm from exercises