Created getLongevityCategories.R

This file actually contains 3 functions, but only getLongevityCategories() is intended for direct use by the user - the other 2 are called by getLongevityCategories().