Add max and min functions to prelude.
Fix M8b_Test.