refactored npolynomials.lua (chapter 3)
refactored boolean.lua (chapter 3)