implement a function to write the result as the ccfinder's format
implement the function to write the results as ccfinder's format
[bug fix]