adding cell creation and pipe linking in LinearSim.c