Segmentation fault in testCBList