add memory accounting components

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>