Added a columnposition algorithm