Mapping Recursive Functions to Reconfigurable Hardware