Implementing weighted similarity calculation and Trimmed generated circles accpording to a threshold value.

Signed-off-by: Gaurav <ga286@cornell.edu>