programming assignment: got subset bonus with randomized queue