added Node class, completed resizeAndRehash()