A straight line drawn through the point A (2, 1) making an angle π/4 with positive x-axis intersects another line x + 2y + 1 = 0 in the point B. Find length AB.