Initiliaze array from function because of problems with initializer lists with FreeBSD 10 C++ stack.