Implementation of the all maximal scoring subsequences algorithm