memory modelling stuff for the bto-blas project