added arrays for each bucket, must fix so the spaces in each array are dynamically allocated, make sure there is no memory leak