Use table row weight during compression
Provide a unit test for the weighted table