First commit.
Added demo data.
Moved the core part to a separate class.
Converted to JUnit class.
Fixed the whole algorithm to use the pre-set types.
Merged with github.