added formatting to fib algorithms