scripts from http://rosalind.info/problems/locations/