Four-point algorithm