functionality for getting preferred accept header entry from given list