Memory usage for simple tasks in different languages