Length constants and useless pointer removed

Use of pointers like I did may not speed up array element access
depending on compiler optimizations.
Use of constants to handle meta-data array sizes for easy-maintenance
purpose.