Misc improvements in HAL

SystemInput and SystemOutput renamed to PeripheralInput/PeripheralOutput
Base class for scalable peripheral in- and outputs added
Misc improvements in the Mux and DeMux Block, Matrix class and tests improved