Added initial implementation of Hirshbergs.