Added initial implementation of Hirshbergs.
Merged changes from upstream.
Merge pull request #16 from dstar4138/master

Initial implementation of Hirshbergs.