shock wave dirk pitt, pseudocode solver