Function for building weightrd adjacency matrix added
Search functionality added