Initial commit. Based on https://github.com/andreaswilm/compbio-utils/blob/master/bedlen.sh