Make num_outputs a compile-time parameter
Partially implement the extraction algorithm
Add network building scaffold required for extraction