dispose method changed deleted every node and then freeid list
dispose method done, used in testing
tested dispose,put,get and remove