Added generics support and warnings cleanup.
Merge branch 'master' of https://github.com/danielpacak/beginning-algorithms