Change ints to NSIntegers to squelch 'implicit conversion loses integer precision' error.
Beginnings of swift implementation and corrected tests with new init function.
Beginnings of swift implementation and corrected tests with new init function.