Add a function for compiling an NFA from a postfix string. Squash a bug in the  complete_partial function