Create Utils.java

Some utility methods useful for data structures