Add a pin to the port at the given position.
pin - (Pin) the pin to be added to the port.
position - (int, default None) the index at which to add the pin