Add McCarthy 91 function