added tests
added test
add min and max macros
progress on reduce
write a stub for the reduce kernel
added type of higher order function to kernel invocation function
give copyToDevice and copyFromDevice optional size arguments
add stub for reduce invocation
fixed typos
fix type generation for int and uint
array decl should put array type in environment
give more context to exceptions
make sure to synchronise in reduce
make the reduce test larger
generate the correct VectorArray constructor
fix type-inferencing on ArrayElem
fix embarassing mistake in reduce kernel generation
check reduce output on cpu
fix style in generate_datatype
Merge pull request #32 from vectorlang/reduce

Implemented Reduce