Generic multithreaded feature extraction

Change-Id: Ie089795a80f28ce2e7fd69e9997448a5c13fa158