Scalable nanomechanical logic gate