Added quad and triangle

This two functions were removed because they could be easily replicated with polygon