Major refactoring: removed callable objects, functions are first class
citizens; removed strip() calls; introduced BlockSparsityPattern class