Moved helpers to separate file.
Merge remote-tracking branch 'atgeirr/master'
printSparseMatrix(): Use InnerIterator rather than index

This way, we're (slightly) more agnostic to the inner storage scheme.