Add reducers, searching for solution with malloc

Signed-off-by: Nikita 'webconn' Maslov <wkernelteam@gmail.com>