added Constructor and arraylist in Table
hash function is written