%getInitialYPositionToTryIfDirectionMatters Returns the initial y-position
%for a given portBlock and a given direction.
%   initialYPosition =
%   getInitialYPositionToTryIfDirectionMatters(portBlock, blockOfGroup,
%   portBlocksPlaced, blocksToCheckForIntersection, direction) returns an
%   initial y-position for the given port block and the given direction
%   which can be 1 (down) or -1 (up). It takes into account the block of
%   the group to which the port block is assigned, the port blocks that
%   have been already positioned, and other blocks for which overlaps are
%   to be avoided.
