Add a tool to measure the accuracy of the algorithm