It is worth applying, but CMU’s School of Computer Science has somewhere around a 5% acceptance rate and Cornell is very competitive as well.
Given your low class rank (is your school high ranked?), and lower test scores, those 2 schools will be significant reaches.