Add reduce kernels to the support library.

Currently hidden behind a flag, since reduce isn't part of any API
level yet.

Bug: 22631253
Change-Id: Ia8e8bb9429f9cb8844d38067f43fa493cbb8540c
3 files changed