Initial commit - adding preliminary tests.
Works!
Working, with optimizations.