Determine the approximate memory consumption of a given class