Trying to deal with lack of RAM - shorter transition matrix version