Low-power and low-cost implementation of SVMs for smart sensors