The functions below must be run in order to output cosine similarity in degrees and radians between two files. I want to automate this to process 500 files in same directory