added some generics stuff for getting max value of a slice
added testing framework