The KP hierarchy and its standard reductions