Fix a bug in hyb_matrix constructor

The bug lead to array overrun for non-square matrices where number of rows was less than number of columns.

The hist_entries vector should contain enough elements to hold full row of a matrix, not a full column.

P.S. I think this is second time I am fixing the same bug, sorry for not doing it right the first time :).