Added generate & solve methods to IDataStructure.java.