fixed a few bugs in the grouping functions
I think is very close. The sort works well, the ranking appears to work. I have tested with a handfull of hands, including an ace low straight which it ranked. Still need to iron a better protocol. I'm thinking it should wait for the client to send a control byte to put it into a ranking mode, then send 5 bytes (the cards). Ranker 4000 will then send back 5 bytes (cards) plus the hand ranked, then go back into a listening state.