Final submission for the Intel "Accelerate Your Code" Contest 2012