Changed candidate set and Refinement set to LinkedList, seems to be
working fine now