Commit #8. Score calculation

Changes:
* add score threshold setting trackbar
* adjust cell value estimation algorithm
* some cleanup