added the code to output the links and scores in a jason file
modified the split function by performing multiple splits in similarity function