fix in nnp
fix bug in selfjoin
fix till 2nd phase sparse
fixes in vector generation