bugfix for memory controller: add helper function for assigning cgroup to page