Added T-junction and started a circuit search algorithm