Algorithm improved to parse goldStandard file