some multiplications and additions replaced with bit manipulations at lowest io level => significant performance improvement, stupit LIMIT and OFFSET implementations replaced with better ones