Variable Multihead Machines