Remake of middle acceleration algo

Signed-off-by: Nikta <wkernelteam@gmail.ru>