Simple memory test meant to be used with haskells profiling tool