Replaced new data; Implemented tiebreak for cosine sim