Unroll small loops with template metaprogramming

- I think compiler can unroll these loops, but I just want to try template metaprogramming :D
- reference: http://stackoverflow.com/questions/2382137/how-to-unroll-a-short-loop-in-c-using-templates
Add size() function: returns count of all elements in array