Learning Planar shapes and neural nets complexity