Update d3 superformula definition

Moved definitions into the d3 module and added a test