Renames iterative method and adds possible recursive method for inject.