This is the excellent MemoryFree library from http://www.arduino.cc/playground/Code/AvailableMemory.
I am hosting it here so there is a quick and easy way to pull it down.