Initial implementation for the maximum sequence sum