fix constructW, LapScore and NDFS
Merge pull request #2 from jundongl/master

fix constructW, LapScore and NDFS