Vector reduce kernel ready to handle multiple statements