Make list insertion log(n) instead of n log(n)