Create Utils.java

Some utility functions useful for data structures