Classification of groups of order 2p