Added Java Snipps
Added c++ file and updated readme