added methods `getMode` (not all variants) and  `getMedian`