running time of various datastrucutres