Use stdin for input. Add debug flag.
Fix block size.

Width of block (x dimension) must be equal to the number of inputs.
Fix a(ligned) size
Add detection of device capabilities for best block size.
Split input in chucks based on free global memory on device.