Re-implemented delete method to have O(logN) rather than the previous O(N) time complexity