Design an algorithm to find all pairs of integers within an array which sum to a specified value.
Example 1:
Input: nums = [5,6,5], target = 11
Output: [[5,6]]
Example 2:
Input: nums = [5,6,5,6], target = 11
Output: [[5,6],[5,6]]
Note:
nums.length <= 100000