- added cpp, java, javascript implementations