BESTFIT & WORSTFIT implementations + basic tests passed