optimizing code fibonacci