exhaustive search - sketch out pseudocode