add a generic print function using variadic templates
Merge pull request #1 from jyujin/generic-print

add a generic print function using variadic templates