Update memsim.c

Changed first, next, best, and worst. Katie, there are comments that I hope you can address.