solution 40a
paremeterize maximum exponent
make dsplit handle zero and negative numbers
add comments on how to improve further