Please solve the programming task below using a self-contained code snippet in a markdown code block.

Write a recursive function to multiply two positive integers without using the * operator. You can use addition, subtraction, and bit shifting, but you should minimize the number of those operations.
Please complete the following python code precisely:
```python
class Solution:
    def multiply(self, A: int, B: int) -> int:
```