MIPS: add mips algorithm support