Fixed error with calling unique on data.table
(was using only WBIC to determine unique rows).