added neigbour distance parameter for each example.

added circle intersection function