implemeted algorithm, results output to file.
added new files