command-line support for selecting ranges
hmatrix implementation (partial)
merged hmatrix branch