fixed unittest testDbnStructure()
refactor nLayers and init layers
clean up code
fixed SdaTest
Merge pull request #9 from linkerlin/master

fixed unittest testDbnStructure() thanks!