Different algorithms implemented in MIPS