Algorithmic study of 2-interval graphs