updated DynamicConnectivity to use Math object, as Math functions are no no longer availble in the Renderer class