Phonebook application in Java, C++, and R