abs method added to functional
polygon example added
square example added
dimension check for polygon distance function added
assignment operator added for functional