code snippets for complexity in readme