Compile-time minimax (Not finished)