test adapted tiling func
Merge branch 'master' into tiling
Merge branch 'tiling' of ssh://github.com/yszheda/GPU-RSCode into tiling

Conflicts:
	src/decode.cu
using template function, have bugs
fix EM generation bug
fix EM generation bug for large EM (dim > 256)
Merge branch 'master' into tiling

Conflicts:
	src/matrix.cu
merge from master branch.
1st attempt for dynamic tiling tuning
use external sMem, need to find an optimized upper bound
add compiler flag for occupancy calculation.
attemp to reduce #regs/thread and sMem/block, #regs/thread is still
required to be further reduced.
tuning block and grid size
back on dynamic allocating sMem
first workable version of tiling-Strategy-1, need further optimization.
an optimized version of tiling-Strategy-2
first workable version of tiling-Strategy-3, need further optimization.
update automake Makefile for generating three tiling strategies
optimizing S1, reducing iteration times
apply the optimization tech from S2