Add test for shaped SSA

Check equivalence with Alex's old R code on ramdom data
Merge pull request #93 from eodus/test_shaped

Add test for shaped SSA