Implement methods in Cpuset.java