Used LINQ to simplify the searching.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added a pass to move functions to an appropriate existing class if possible.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added a test for the pass that moves functions to a class.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #128 from ddobrev/master

Added a pass to move functions to an appropriate existing class if possible