Add privatized rfft function