* refactor library for a more OOP style approach to tensor types
* add classes for unfolded tensors
* fix unfolding/folding bug in sptensor