Write a function to implement the Fibonacci sequence both recursively and iteratively.
Implement one function that supports both approaches and returns the nth Fibonacci number. Use F(0) = 0 and F(1) = 1; the input is a non-negative integer and the output is an integer.
def fibonacci(n, recursive=False):