Implementation of linear minimum area enclosing triangle algorithm