Ruby, Perl, JS, Java implementations for finding unique words in one or more files