Merge pull request #7 from dejay/master

Added support for a tie
Altered tie mechanism to use a double-nested for loop