[core] Adds a "free_memory" library for arduino.