Remove duplicated logic #14
Improve logic from calculating col positions #14
Optimize method for getting closest column #14