Added accuracy function which calculates the accuracy as defined in the paper I want to compare my system to.