The 2ν double beta decay in nuclear matter