Added generics code

Added some code on building generic structs and functions thanks to
https://www.youtube.com/watch?v=Qh5NFikuNrI , includes a generic stack
implementation
By: RossH
On: 18/6/14