Fixed bugs in portnoff_analysis and portnoff_synthesis.