What is the mistake in this MIPS partition function? I want to translate this function written in C into MIPS: