public boolean insert(PageId pageNo, int frameNo) {
      
    // Instantiate a new entry
    BufHTEntry entry = new BufHTEntry();
      
    // Set entry properties
    // NOTE: this should be part of the constructor or through a setter method
    entry.pageNo.pid = pageNo.pid;
    entry.frameNo = frameNo;
      
    // Determine the pageNo's bucket using the hash function
    int index = hash(pageNo);
      
    // Insert entry into top of linked list for a time complexity of O(1)
    entry.next = ht[index];
    ht[index] = entry;
      
    return true;
    
  } // end insert()