function template, templatized fibonacci return value and index