Added hailstone and sortFun. Added headers to recFun.