Added Big O efficiency documentation