Added set implementation in Java