algorithm test ready for small dataset