Add function to query the memory usage of the BP structure.