A Programmable Event Processor for Body Sensor Networks