Fixing to process larger datasets
Changing orientation of the signature matrix to make the NLJ faster