replace sort with linear search

replace conversion to list, sort and first with a min.  Now compiles with scala 2.10
Merge pull request #4 from abremod/compile_with_2.10

replace sort with linear search