computing memory usage on Windows