use fast array initialization

The idea was stolen from
http://stackoverflow.com/questions/201101/how-to-initialize-an-array-in-c/1565469#1565469