created util function which write down similarity data into csv file.