added worker js for a* algorithm