A Decision Tree Synthesis Flow for Precise and Approximate Circuits