added simple benchmark code, minor optimization for fibonacci function