Theoretical modeling of carbohydrate mediated recognition phenomena