Matrix Keypad - Optimisation

to use a single pin as input and a single pin to read output. so we can work out all sizes of keypads on 2 pins. Thats the idea.