described a faster solution for 2.5