calculate optimal array size for DGETRI