insert B in A from j to i