Added set_dim capability to mempool