calculated floor matrices and reuse them when necessary;