Implementing the “tails” from Data.List module
stackoverflow.com