Minor changes

Added one way of weighted matrix construction, added function to
construct neighbourhood based on weighted matrix