restructured kernel distribution. still has mismatches in output
Merge branch 'restruc_kernel' into check_output
solved cpu and gpu output inconsistency
fixed cpu and gpu output inconsistency.