Static method for data
Added tests
Merge pull request #6 from AirVan21/master

Static method. Matrix separation