Change nerves to input/output vectors rather than doubles