Travis CI integration

 - Added .travis.yml
 - Made test environment work

TODO: add some real tests and refactor current algorithm layout