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.
Merge pull request #79 from ddemidov/master

Fix a bug in hyb_matrix constructor for non-square matrices