For three distinct real numbers \( x, y \) and \( z \), let
\[ f(x, y, z) = \min \left( \max(x, y), \max(y, z), \max(z, x) \right) \]
\[ g(x, y, z) = \max \left( \min(x, y), \min(y, z), \min(z, x) \right) \]
\[ h(x, y, z) = \max \left( \max(x, y), \max(y, z), \max(z, x) \right) \]
\[ j(x, y, z) = \min \left( \min(x, y), \min(y, z), \min(z, x) \right) \]
\[ m(x, y, z) = \max(x, y, z) \]
\[ n(x, y, z) = \min(x, y, z) \]
The relationship between two variables \( x \) and \( y \) is given by \( x + py + q = 0 \) and is shown in the figure. Find the values of \( p \) and \( q \). Note: The figure shown is representative.
When $10^{100}$ is divided by 7, the remainder is ?