Add recsys::util::rating_record
fix bug in algorithm::sort