Reverted to dict-of-dict access for matrix creation. itemgetter not fast
enough. dict of dict access is much faster, sigh...