Add preliminary memory statistics support (still missing some calculated values)