first version of simplified Local Binary Patterns algorithm and function for generating coordinates of blocks