public boolean save(String fname) {
        try  {
            FileOutputStream ostream= new FileOutputStream(fname);
            ObjectOutputStream oos= new ObjectOutputStream(ostream);
            oos.writeObject(this);
            oos.flush();
            oos.close();
        }
        catch (Exception e)  {
            System.out.println("ERROR - "+e);
            return false;
        }
        return true;
    }



    public HashWord load(String fname) {
        try  {
            FileInputStream istream= new FileInputStream(fname);
            ObjectInputStream ois= new ObjectInputStream(istream);

            HashWord hwModel= (HashWord) ois.readObject();
            this.load(hstr);
            ois.close();
            return hwModel;
        }
        catch (Exception e)  {
            System.out.println("ERROR - "+e);
            return null;
        }
    }