Better debugging and tiny performance upgrade in cmpsc_search_cce

Added some debug messages and improved some. Tiny performance upgrade in cmpsc_search_cce. Please ignore the gcc warnings!