HEVC is a
codec (also known as H.265, and is the successor of the popular H.264) and
MKV is a
video container, the same way an
AVI can be the container of a
DivX or
XviD encoded video (DivX/XviD is a codec too). Files encoded with H265 are very small, but needs a powerful machine to play them.