put a for loop in BufferPool's insert tuple method