allocate wordpair features in shared memory