Fixed bug in matrix iterator. improved sbfTimer. some additions in tests