Fix precision() and add new accuracy function for a given label