This is conservation of momentum. At the beginning the total momentum is zero. When you throw the stone you give the stone a positive momentum, which means you must have a negative momentum (when I say negative I mean in the opposite direction of the direction of the stone) so that the total momentum is still zero. You and the canoe will move in the opposite direction of which you threw the stone.