java files with algorithms