Finding Dense Structures in Graphs and Matrices