Adding big O and method in function docstrings