Fix for OpenPeripheral

Fix to work with latest version of OpenPeripheral
Contributed by huffy2404 from ComputerCraft forum
Implemented selection sort instead of bubble sort

Selection sort needs fewer swaps, so the overall processing should be
faster.
Also replaced print commands with the logLine function.
Added missing toleranceString constants
Cleanup of printBee function
Fix for scoring system

The scoring system had a bug, if the princess is purebred of the
targeted species.
Merge pull request #3 from Zixxl/master

Latest changes from ComputerCraft forum